import pytest


# @pytest.fixture(scope='function')
# def loginFixture():
#     print('登录')
#     yield
#     print('退出登录')

@pytest.fixture(scope='class')
def loginFixture():
    print('登录')
    yield
    print('退出登录')